﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Markup;
using SharpMap.Styles;

namespace SharpMap.Wpf.Markup
{
    public class StylePenExtension : MarkupExtension
    {

        StyleColor _color;

        public StyleColor Color
        {
            get { return _color; }
            set { _color = value; }
        }
        double _width;

        public double Width
        {
            get { return _width; }
            set { _width = value; }
        }


        public override object ProvideValue(IServiceProvider serviceProvider)
        {
            return new StylePen(Color, Width);
        }
    }
}
